import http from '@/http'
import qs from 'qs'

// 退款相关

// 退款订单列表
const refundOrderList = (params) => {
    return http.get('v1/refundOrders', {
        params,
        paramsSerializer: function (params) {
            return qs.stringify(params, { arrayFormat: 'brackets' })
        },
    })
}

// 再次退款
const againRefund = (id) => {
    return http.post(`v1/refundOrders/${id}/refund`)
}

export { refundOrderList, againRefund }

